import {
  getRouter
} from '@/utils/index'

/**
 * 预算执行阶段路由
 */

const executeStageRoute = [
  // 预算执行阶段报单类型管理
  {
    path: '/executeStage/categoryManage/showStage',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/CategoryManage', 'ShowStage'),
    meta: {
      name: '报单类型'
    }
  },
  {
    path: '/executeStage/categoryManage/showContentList',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/CategoryManage', 'ShowContentList'),
    meta: {
      name: '列表',
      activeMenu: '/executeStage/categoryManage/showStage',
      activeName: '报单类型'
    }
  },

  // 报单填报管理
  {
    path: '/executeStage/billWrite/showStage',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/BillWrite', 'ShowStage'),
    meta: {
      name: '报单填报'
    }
  },
  {
    path: '/executeStage/billWrite/showProjectTree',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/BillWrite', 'ShowProjectTree'),
    meta: {
      name: '项目列表',
      activeMenu: '/executeStage/billWrite/showStage',
      activeName: '报单填报'
    }
  },
  {
    path: '/executeStage/billWrite/report/:mx_id/:stage_id',
    name: 'Report',
    component: getRouter('views/WritePage/src', 'reportFill'),
    meta: {
      name: '详情'
    }
  },
  {
    path: '/executeStage/billWrite/showWriteLogList',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/BillWrite', 'ShowWriteLogList'),
    meta: {
      name: '填报日志',
      activeMenu: '/executeStage/billWrite/showProjectTree',
      activeName: '项目列表'
    }
  },
  {
    path: '/executeStage/billWrite/show/fill/:id/:isShow/:stage_id',
    name: 'Report',
    component: getRouter('views/WritePage/src', 'showFixFill'),
    meta: {
      name: '详情'
    }
  },
  // 这里添加报单填报的router

  // 报单审核管理
  {
    path: '/executeStage/billAudit/showStage',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/BillAudit', 'ShowStage'),
    meta: {
      name: '报单审核'
    }
  },
  {
    path: '/executeStage/billAudit/showBillList',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/BillAudit', 'ShowBillList'),
    meta: {
      name: '列表',
      activeMenu: '/executeStage/billAudit/showStage',
      activeName: '报单审核'
    }
  },
  {
    path: '/executeStage/billAudit/check/fill/:id/:isShow',
    name: 'Report',
    component: getRouter('views/WritePage/src', 'showCheckFill'),
    meta: {
      name: '详情',
      activeMenu: '/executeStage/billAudit/showStage',
      activeName: '报单审核'
    }
  },
  // 这里添加报单审核的router

  // 回执单填报管理
  {
    path: '/executeStage/receiptWrite/showStage',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/ReceiptWrite', 'ShowStage'),
    meta: {
      name: '回执单填报'
    }
  },
  {
    path: '/executeStage/receiptWrite/showWriteList',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/ReceiptWrite', 'ShowWriteList'),
    meta: {
      name: '列表',
      activeMenu: '/executeStage/receiptWrite/showStage',
      activeName: '回执单填报'
    }
  },
  {
    path: '/executeStage/receiptWrite/normal/write/:id/:stage_id',
    name: 'showStage',
    component: getRouter('views/WritePage/src', 'normalBill'),
    meta: {
      name: '详情', // 普通回执单
      activeMenu: '/executeStage/receiptWrite/showWriteList',
      activeName: '列表'
    }
  },
  // 这里添加报单审核的router

  // 回执单审核管理
  {
    path: '/executeStage/receiptAudit/showStage',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/ReceiptAudit', 'ShowStage'),
    meta: {
      name: '回执单审核'
    }
  },
  {
    path: '/executeStage/receiptAudit/showAuditList',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/ReceiptAudit', 'ShowAuditList'),
    meta: {
      name: '列表',
      activeMenu: '/executeStage/receiptAudit/showStage',
      activeName: '回执单审核'
    }
  },
  {
    path: '/executeStage/receiptWrite/normal/check/show/:id/:isShow/:stage_id',
    name: 'showStage',
    component: getRouter('views/WritePage/src', 'showCheckBill'),
    meta: {
      name: '详情'
    }
  },
  // 这里添加报单审核的router

  // 预算执行阶段汇总表管理
  {
    path: '/executeStage/summaryManage/ShowStage',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/BudgetSummaryManage', 'ShowStage'),
    meta: {
      name: '预算汇总'
    }
  },
  {
    path: '/executeStage/summaryManage/ShowContentList',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/BudgetSummaryManage', 'ShowContentList'),
    meta: {
      name: '列表',
      activeMenu: '/executeStage/summaryManage/ShowStage',
      activeName: '预算汇总'
    }
  },

  // 预算执行阶段项目台账管理
  {
    path: '/executeStage/StandingBookManage/ShowStage',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/StandingBookManage', 'ShowStage'),
    meta: {
      name: '预算项目台账'
    }
  },
  // 台账项目列表
  {
    path: '/executeStage/standingBookManage/showProjectContentList',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/StandingBookManage', 'ShowProjectContentList'),
    meta: {
      name: '列表',
      keepAlive: true,
      activeMenu: '/executeStage/StandingBookManage/ShowStage',
      activeName: '预算项目台账'
    }
  },
  // 具体台账信息
  {
    path: '/executeStage/standingBookManage/ShowProjectContentInfo',
    name: 'showStage',
    component: getRouter('views/ExecuteStageManage/StandingBookManage', 'ShowProjectContentInfo'),
    meta: {
      name: '详情',
      activeMenu: '/executeStage/standingBookManage/showProjectContentList',
      activeName: '列表'
    }
  }
]

export default executeStageRoute
